<?php
/**
 * @Author：James.xiao <406155794@qq.com>
 * @DateTime：2024-06-01 10:35:16
 * @Note：微信code获取
 *
 */

require 'library/Authorize.php';

$appId             = 'your appId';
$authorize         = new xiao\weixin\library\Authorize($appId);
// 授权域名
$redirectUrlConfig = [
     'http://abc.com',
     'http://www.baidu.com',
     'http://localhost',
];

$authorize->authorizeCodeToUrl($redirectUrlConfig);
